package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.system.entity.DispatchOrder;
import cn.stylefeng.guns.modular.system.model.params.DispatchOrderParam;
import cn.stylefeng.guns.modular.system.model.result.DispatchOrderResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 发货表 服务类
 * </p>
 *
 * @author ZhangJun
 * @since 2019-07-04
 */
public interface DispatchOrderService extends IService<DispatchOrder> {

    /**
     * 新增
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
    void add(DispatchOrderParam param);

    /**
     * 删除
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
    void delete(DispatchOrderParam param);

    /**
     * 更新
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
    void update(DispatchOrderParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
    DispatchOrderResult findBySpec(DispatchOrderParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
    List<DispatchOrderResult> findListBySpec(DispatchOrderParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author ZhangJun
     * @Date 2019-07-04
     */
     LayuiPageInfo findPageBySpec(DispatchOrderParam param);

}
